WPP:RegisterAction("GRAB", "Pick Up", "Pick Up an entity with the gravity gun.");

WPP:LinkWeapons(WPP_GRAB,"weapon_physcannon");

WPP:SetWorldAcess(WPP_GRAB, true);

function WPP.CanPickUp(Player,Entity)
	if ( !WPP:IsValid(Entity) ) then
		return false;
	end
	
	return WPP:ValidateAction(WPP_GRAB,Entity,Player);
end

hook.Add("GravGunPickupAllowed","WPP-GravGunPickupAllowed",WPP.CanPickUp);
hook.Add("GravGunPunt","WPP-GravGunPunt",WPP.CanPickUp);